// tree | picker
const getDescribleData = (type = 'tree') => ([
    {
        params: 'label',
        des: '指定树节点名称所对应的字段编码',
        type: 'String | Function(data, node)',
        values: '-',
        defaultVal: '"name"',
    },
    ...(['picker'].includes(type) ? [
        {
            params: 'value',
            des: '指定唯一键所对应的字段编码',
            type: 'String',
            values: '-',
            defaultVal: '"id"',
        },
    ] : []),
    {
        params: 'children',
        des: '指定子节点对应的字段编码',
        type: 'String',
        values: '-',
        defaultVal: '"children"',
    },
    {
        params: 'disabled',
        des: '指定节点选择框禁用状态对应的字段编码',
        type: 'String | Function(data, node)',
        values: '-',
        defaultVal: '"disabled"',
    },
    {
        params: 'isLeaf',
        des: '指定节点是否为叶子节点对应的字段编码，仅在指定了 lazy 属性的情况下生效',
        type: 'String | Function(data, node)',
        values: '-',
        defaultVal: '"isLeaf"',
    },
    {
        params: 'class',
        des: '自定义节点类名',
        type: 'String | Function(data, node)',
        values: '-',
        defaultVal: '-',
    },
]);

export default getDescribleData;
